//
//  CJExten+UIViewController.swift
//  CJCore
//
//  Created by 陈警卫 on 2024-07-08.
//

import UIKit
import Foundation

public extension UIViewController {
    
    /// 是否暗色模式
    @objc var cj_isDarkMode: Bool {
        if #available(iOS 13.0, *) {
            return self.traitCollection.userInterfaceStyle == .dark
        } else {
            return false
        }
    }
}
